﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartCity.ProcessEngine.Domain.Entities
{
    /// <summary>
    /// 流程实例实体 
    /// </summary>
    public class InstanceModel:BaseModel
    {
        /// <summary>
        /// 流程表单Id
        /// </summary>
        public long FormId { get; set; }
        /// <summary>
        /// 实例内容
        /// </summary>
        public string FormContent {  get; set; }
        /// <summary>
        /// 流程实例的状态 : 申请 处理中 完成  
        /// </summary>
        public InstanceStatus FlowStatus {  get; set; }
        /// <summary>
        /// 申请人名称
        /// </summary>
        public string StarterName {  get; set; }
        /// <summary>
        /// 当前节点id  :是变化的,随着流程实例的推进,节点id不断变化  节点配置id 不是nodeid
        /// </summary>
        public long CurrentNodeId {  get; set; }
        /// <summary>
        /// 当前节点名称
        /// </summary>
        public string CurrentNodeName {  get; set; }
        /// <summary>
        /// 当前操作人名称 (登录信息中取)
        /// </summary>
        public string CurrentOperatorName {  get; set; }
        /// <summary>
        /// 下一级节点id
        /// </summary>
        public long? NextNodeId {  get; set; }
        /// <summary>
        /// 下一级节点名称
        /// </summary>
        public string  NextNodeName {  get; set; }
        /// <summary>
        /// 下一级操作人名称
        /// </summary>
        public string NextOperatorName { get; set; }

        /// <summary>
        /// 实例更新时间
        /// </summary>
        public DateTime? UpdateTime {  get; set; }
             
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeletedTime {  get; set; }

    }
}
